Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 5f3b2eb020da1b2bd21d2923e7073a541e03c11c


Parents : 93cc790
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-12-28T11:39:15+01:00

Convert Windows line endings to UNIX format, fixes display issues with micron files created on Windows

Changes

1 files changed, 1 insertions(+), 1 deletions(-)


Diff

diff --git a/nomadnet/util.py b/nomadnet/util.py
index d1d38c4..8f077f6 100644
--- a/nomadnet/util.py
+++ b/nomadnet/util.py
@@ -1,6 +1,5 @@
import re
import unicodedata
-import RNS
def strip_modifiers(text):
def process_characters(text):
@@ -26,5 +25,6 @@ def strip_modifiers(text):
stripped = re.sub(r'[\U000E0100-\U000E01EF]', '', stripped, flags=re.UNICODE)
stripped = re.sub(r'[\U0001F3FB-\U0001F3FF]', '', stripped, flags=re.UNICODE)
stripped = re.sub(r'[\u200D\u200C]', '', stripped)
+ stripped = re.sub(r'\r\n?', '\n', stripped)
return stripped


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────